<?php
function get_title()
{
    $file = $_SERVER["SCRIPT_NAME"];
    $break = Explode('/', $file);
    $pfile = $break[count($break)-1];

    $title = "Charry's Homepage";
    switch($pfile)
    {
        case "photo.php":
            $title = $title." :: Photo";
            break;
        case "misc.php":
            $title = $title." :: Misc";
            break;
        case "about.php":
            $title = $title." :: About";
            break;
        case "links.php":
            $title = $title." :: Links";
            break;
        case "friendconnect.php":
            $title = $title." :: Friend Connect";
            break;
        case "project.php":
            $title = $title." :: Project";
            break;
        default:
            // NOOP
    }

    return $title;
}
?>
